﻿namespace WMS6.Web
{
    using System;
    using System.Data;
    using WMS6.Web.PrintReportServiceRef;

    public class PrintReportServiceClientProxy : BasePage
    {
        public DataSet GetEncasingDetailNote(string orderID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetEncasingDetailNote(orderID, printReprotsInfo);
            }
        }

        public DataSet GetEncasingNote(string orderID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetEncasingNote(orderID, printReprotsInfo);
            }
        }

        public static PrintReportServiceClientProxy GetInstance()
        {
            return new PrintReportServiceClientProxy();
        }

        public DataSet GetPrintAllocation(string receiptID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintAllocation(receiptID, printReprotsInfo);
            }
        }

        public DataSet GetPrintBatchOutboundListReport(string waveId, string detailID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintBatchOutboundListReport(waveId, detailID, printReprotsInfo);
            }
        }

        public DataSet GetPrintBatchPickAdviceReport(string waveID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintBatchPickAdviceReport(waveID, printReprotsInfo, base.UserInfo.UserID);
            }
        }

        public DataSet GetPrintBatchPickAdviceReportByOrders(string orderIDs, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintBatchPickAdviceReportByOrders(orderIDs, printReprotsInfo, base.UserInfo.UserID);
            }
        }

        public DataSet GetPrintBatchPickListReportInfo(string orderID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintBatchPickListReportInfo(orderID, printReprotsInfo);
            }
        }

        public DataSet GetPrintBatchShippingOrderReport(string waveId, string detailID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintBatchShippingOrderReport(waveId, detailID, printReprotsInfo);
            }
        }

        public DataSet GetPrintCommoditySignoff(string orderID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintCommoditySignoff(orderID, printReprotsInfo);
            }
        }

        public DataSet GetPrintLpnLabelInfo(string lpnIDs, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintLpnLabelInfo(lpnIDs, printReprotsInfo);
            }
        }

        public DataSet GetPrintMergePickListReportInfo(string waveId, string descr, string detailID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintMergePickListReportInfo(waveId, descr, detailID, printReprotsInfo);
            }
        }

        public DataSet GetPrintOrderMovementInfo(string movementID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintOrderMovementInfo(movementID, printReprotsInfo);
            }
        }

        public DataSet GetPrintOutboundInfo(string orderID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintOutboundInfo(orderID, printReprotsInfo);
            }
        }

        public DataSet GetPrintOutboundListInfo(string orderID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintOutboundListInfo(orderID, printReprotsInfo);
            }
        }

        public DataSet GetPrintPickDivideReport(string waveId, string detailID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintPickDivideReport(waveId, detailID, printReprotsInfo);
            }
        }

        public DataSet GetPrintPickListReportInfo(string orderID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintPickListReportInfo(orderID, printReprotsInfo);
            }
        }

        public DataSet GetPrintPickReportInfo(string orderID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintPickReportInfo(orderID, printReprotsInfo);
            }
        }

        public DataSet GetPrintPickWorkReportInfo(string orderID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintPickWorkReportInfo(orderID, printReprotsInfo, base.UserInfo.UserID);
            }
        }

        public DataSet GetPrintPurchaseOrderInfo(string poID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintPurchaseOrderInfo(poID, printReprotsInfo);
            }
        }

        public DataSet GetPrintPutawayReportInfo(string receiptID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintPutawayReportInfo(receiptID, printReprotsInfo);
            }
        }

        public DataSet GetPrintReceiptHistoryInfo(string receiptID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintReceiptHistoryInfo(receiptID, printReprotsInfo);
            }
        }

        public DataSet GetPrintReceiptInfo(string receiptID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintReceiptInfo(receiptID, printReprotsInfo);
            }
        }

        public DataSet GetPrintSalesOrderInfo(string orderID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintSalesOrderInfo(orderID, printReprotsInfo);
            }
        }

        public DataSet GetPrintShippingOrderByID(string orderid, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintShippingOrderID(orderid, printReprotsInfo);
            }
        }

        public DataSet GetPrintWaveShipmentReport(string waveIDs, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintWaveShipmentReport(waveIDs, printReprotsInfo);
            }
        }

        public DataSet PrintCycleCountByReleaseID(string releaseID, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintCycleCountByReleaseID(releaseID, printReprotsInfo);
            }
        }

        public DataSet PrintPCMaintenanceList(string PhysicalRequestID, string OnlyNonEmptyLoc, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintPCMaintenance(PhysicalRequestID, OnlyNonEmptyLoc, printReprotsInfo);
            }
        }

        public DataSet PrintPCReview(string PhysicalRequestID, string OnlyNonEmptyLoc, string OwnerID)
        {
            PrintReportsInfo printReprotsInfo = new PrintReportsInfo {
                CurrentWH = base.UserInfo.CurrentWH,
                OwnerID = OwnerID,
                UserLanguage = base.UserInfo.Preference.Lang
            };
            using (PrintReportServiceClient client = new PrintReportServiceClient("WSHttpBinding_IPrintReportService"))
            {
                return client.GetPrintPCReview(PhysicalRequestID, OnlyNonEmptyLoc, printReprotsInfo);
            }
        }
    }
}

